import http from '@/utils/http'

/* 
 * 文章管理模块
 */

// 保存
export const save = (data) => {
        return http({
            url: '/chapter/insert',
            method: 'post',
            data
        })
    }
    // 删除
export const batchDelete = (param) => {
        return http({
            url: `/chapter/delete/${param}`,
            method: 'get',
        })
    }
    // 分页查询
export const findPage = (data) => {
    return http({
        url: '/chapter/all',
        method: 'get',
        data
    })
}